#include<stdio.h>
int main()
{
	double s;
	
	scanf("%lf",&s);
	printf("%lf",s*1.8+32);
}
